@foreach($projects as $project)
<div class="investment-data">
    <div class="Ex-return">预期年化收益</div>
    <div class="Return-rate">{!! $project->auto_rate !!}</div>
    <div class="In-tement">
        <ul class="clear">
            <li>借款</li>
            <li>{{$project->money}}{{$project->money_cate}}</li>
            <li></li>
            <li>期限</li>
            <li>{{$project->finance_time_num}}{{$project->r_finance_time_cate}}</li>
            <li></li>
            <li>起投</li>
            <li>{{$project->finance_rule_money}}元</li>
        </ul>
    </div>
    <div class="progress">
        <div class="progress-lis clear">
            <div class="progress-clolor" >
                <span style="width:{{$project->ratio}}%;"></span>
            </div>
            <p>{{$project->r_ratio}}%</p>
        </div>
        <div class="quota clear">
            <div class="fl">
                <span>融资金额(元)</span>
                <em>{{$project->had_money}}</em>
            </div>
            <div class="fr">
                <span>可投金额(元)</span>
                <em>{{$project->need_money}}</em>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="guarantee-icon clear">
        <div style="display:{{$project->collateral_id?'':'none'}}">
            <em class="danbao"></em>
            @if($project->collateral_name=='无')
                <span>信用</span>
            @else
                <span>担保</span>
            @endif
        </div>
        <div style="display:{{$project->is_plan==1?'':'none'}}">
            <em class="beifu"></em>
            <span>风险备付金</span>
        </div>
        <div style="display:{{$project->repayment_name?'':'none'}}">
            <em class="daoqi"></em>
            <span>{{$project->repayment_name}}</span>
        </div>
    </div>
</div>
<!-- repayment / -->
<div class="details-data">
    <ul>
        <li><span>截止时间：</span><i>{{$project->end_time}}</i></li>
        @if(!empty($project->interest_at))
        <li><span>起息时间：</span><i>{{$project->interest_at}}</i></li>
        @endif
        <li><span>项目状态：</span><i>{{$cate[$project->status]->name}}</i></li>
        <li class="clear"><span class="gift-rule">红包规则：</span>
            <div class="gift-list">
                    @if(!empty($project->gift_money_cate))
                        @foreach($project->gift_money_cate as $key=> $gift_money_cate)
                        <p>投{{$gift_money_cate['tou']}}元,送{{$gift_money_cate['son']}}元;@if($gift_add==1)(递增)@endif</p>
                    @endforeach
                    @else<p>无</p>@endif
            </div>
        </li>
    </ul>
    <dl>
        @foreach($project->project_attr_cates as $attr_cate)
        <dd onclick="projectInfo(this)" data-attr-id="{{$attr_cate->id}}"><i class="{{$attr_cate->template_attribute==0?'at':'bi'}}"></i><span>{{$attr_cate->name}}</span><strong></strong><em></em></dd>
        @endforeach
        <dd onclick="window.location.href='Project-detailed.html'"><i class="tt"></i><span>投资明细</span><strong></strong><em>{{$project->user_num}}人</em></dd>
    </dl>
</div>
    @endforeach